from django.urls import path,include
from game.views.settings.getinfo import InfoView
from game.views.settings.register import register
from rest_framework_simplejwt.views import (
    TokenObtainPairView,
    TokenRefreshView,
)


urlpatterns = [
    #参数分别为：地址栏中的路径名；函数名；自己起的名字
    path("token/", TokenObtainPairView.as_view(), name="settings_token"),
    path("token/refresh/", TokenRefreshView.as_view(), name="settings_token_refresh"),
    path("getinfo/", InfoView.as_view(), name="settings_getinfo"),
    path("register/", register, name="settings_register"),
    path("acwing_info/",include("game.urls.settings.acwing_info.index")),
    path("gitee_info/",include("game.urls.settings.gitee_info.index")),
    path("github_info/",include("game.urls.settings.github_info.index")),
]

